package com.design.document.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;

/**
 * Created by 26645 on 2018/11/29.
 */
public class ThreadUtil {


    @Autowired
    private Environment env;

    public void  test(){
        System.out.println(env.getProperty("spring.datasource.url"));

    }



    public static void main(String[] args){

        ThreadUtil threadUtil = new ThreadUtil();
        threadUtil.test();
    }
}
